const request = require('./request')

const BASE_URL = '/finance/logout'

/**
 * 账户初始化
 * @returns 
 */
function logoutInit() {
  return request.get(BASE_URL + '/init')
}

/**
 * 申请注销
 * @param {*} params 
 * @returns 
 */
function applyLogout(params) {
  return request.post(BASE_URL + '/apply', params)
}

/**
 * 撤销注销申请
 * @param {*} params 
 * @returns 
 */
function revocationApply(params) {
  return request.post(BASE_URL + '/revocation', params)
}

module.exports = {
  logoutInit,
  applyLogout,
  revocationApply
} 